package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SParameterDetailsRemarksMapper;
import com.ruoyi.system.domain.SParameterDetailsRemarks;
import com.ruoyi.system.service.ISParameterDetailsRemarksService;

import java.util.List;

/**
 * 参数列备注Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-10
 */
@Service
public class SParameterDetailsRemarksServiceImpl extends ServiceImpl<SParameterDetailsRemarksMapper, SParameterDetailsRemarks> implements ISParameterDetailsRemarksService
{

    @Autowired
    private SParameterDetailsRemarksMapper parameterDetailsRemarksMapper;

    @Override
    public List<SParameterDetailsRemarks> getList(SParameterDetailsRemarks sParameterDetailsRemarks) {
        QueryWrapper<SParameterDetailsRemarks> queryWrapper = sParameterDetailsRemarks.queryWrapper();
        queryWrapper.last("limit 0, 2");
        return parameterDetailsRemarksMapper.getList(queryWrapper);
    }
}
